﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;

namespace FetchDataCompare
{
	[Transaction(TransactionMode.Manual)]
	internal class CheckElementIsHidden : IExternalCommand
	{
		public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
		{
			Document document = commandData.Application.ActiveUIDocument.Document;
			IEnumerator<ElementId> enumerator = new FilteredElementCollector(document, document.ActiveView.Id).OfClass(typeof(ModelLine)).ToElementIds().GetEnumerator();
			{
				while (enumerator.MoveNext())
				{
					if (enumerator.Current.IntegerValue == 566289)
					{
						TaskDialog.Show("11", "包含");
					}
				}
			}
			return Autodesk.Revit.UI.Result.Succeeded;
		}
	}
}
